package cn.modificator.relationtree.utils

import android.view.ViewManager
import cn.modificator.relationtree.widgets.KindLayout
import cn.modificator.relationtree.widgets.RecyclerListView
import org.jetbrains.anko.custom.ankoView

/**
 * Created by Modificator
 * time: 2017/9/18.下午9:59
 * des:create file and achieve model
 */

inline fun ViewManager.recyclerListView(theme: Int = 0) = recyclerListView(theme) {}

inline fun ViewManager.recyclerListView(theme: Int = 0, init: RecyclerListView.() -> Unit) = ankoView({ RecyclerListView(it) }, theme, init)

inline fun ViewManager.kindLayout(theme: Int = 0) = kindLayout(theme) {}

inline fun ViewManager.kindLayout(theme: Int = 0, init: KindLayout.() -> Unit) :KindLayout= ankoView({ KindLayout(it)}, theme, init)